#ifndef _IUIPADDRESS_HPP_
#define _IUIPADDRESS_HPP_

#ifdef _SOLARIS_
#include <inttypes.h>
#else
#include <stdint.h>
#endif

/**
 * @brief Classe representant une adresse IP
 */
class iuIPAddress
{
public:
   iuIPAddress();
   
   void     set(uint32_t address);
   uint32_t get() const;
   
   bool operator==(const iuIPAddress &addr) const;
   
   uint16_t fromBuffer(const char *buffer);
   uint16_t toBuffer(char *buffer) const;

   bool  fromString(const char *string);
   char *toString() const;
   
private:
   uint32_t m_address;
};

#endif
